package cn.easyshipping.cloud.business.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 港口表
 * </p>
 *
 * @author sunyongqiang
 * @since 2020-01-13
 */
public class BPort implements Serializable {

    /**
     * 主键
     */
    @TableId(value = "ID",type = IdType.INPUT)
    protected String id;

    /**
     * 港口中文名
     */
    @TableField("NAME_CN")
    @NotBlank(message = "港口中文名")
    private String nameCn;



    public BPort() {

    }

    public BPort(String id, String nameCn) {
        this.id = id;
        this.nameCn = nameCn;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getNameCn() {
        return nameCn;
    }

    public void setNameCn(String nameCn) {
        this.nameCn = nameCn;
    }


}
